<div class="panel panel-default panel-intro">
  <div class="panel-heading">
    {:build_heading(null, false)}
    <ul class="nav nav-tabs">
      <li class="active"><a href="#info" data-toggle="tab">客户详情</a></li>
      <li><a href="#visit" data-toggle="tab">回访列表</a></li>
      <li><a href="#receive" data-toggle="tab">申请记录</a></li>
    </ul>
  </div>
  <div class="panel-body">
    <div id="myTabContent" class="tab-content">
      <!-- 客户详情 -->
      <div class="tab-pane fade active in" id="info">
        <div class="panel-body newrow prindBody">
          <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST">
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2">客户名称:</label>
              <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                {$row.nickname}
              </div>
            </div>
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2">手机号:</label>
              <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                {$row.mobile}
              </div>
            </div>
            {if condition="$row.email"}
            <div class="form-group">
              <label class="control-label col-xs-12 col-sm-2">邮箱:</label>
              <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                {$row.email}
              </div>
            </div>
            {/if}

            <div class="form-group">
              <label for="title" class="control-label col-xs-12 col-sm-2">性别:</label>
              <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                {$row.sex_text}
              </div>
            </div>

            <div class="form-group">
              <label for="c-thumbs" class="control-label col-xs-12 col-sm-2">客户来源:</label>
              <div class="control-label col-xs-12 col-sm-2" style="text-align:left;">
                {$row.source.name ?? '未知来源'}
              </div>
            </div>
            <div class="form-group">
              <label for="price" class="control-label col-xs-12 col-sm-2">成交状态:</label>
              <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                {$row.deal_text}
              </div>
            </div>

            <div class="form-group">
              <label for="price" class="control-label col-xs-12 col-sm-2">地区:</label>
              <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                {$row.region_text}
              </div>
            </div>

            <div class="form-group">
              <label for="price" class="control-label col-xs-12 col-sm-2">认证状态:</label>
              <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                {$row.auth == 1 ? '已认证' : '未认证'}
              </div>
            </div>

            <div class="form-group">
              <label for="price" class="control-label col-xs-12 col-sm-2">创建时间:</label>
              <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                {$row.createtime}
              </div>
            </div>

            <div class="form-group">
              <label for="price" class="control-label col-xs-12 col-sm-2">头像:</label>
              <div class=" control-label col-xs-12 col-sm-8" style="text-align:left;">
                <img src="{$row.avatar_text}" width="100" alt="">
              </div>
            </div>

          </form>
        </div>
      </div>

      <!-- 回访记录 -->
      <div class="tab-pane fade" id="visit">
        <div class="panel-body newrow prindBody">
          <div id="visittoolbar" class="toolbar">
            {:build_toolbar('refresh,add,edit,del')}
          </div>
          <table id="visittable" class="table table-striped table-bordered table-hover" width="100%">
          </table>
        </div>
      </div>


      <!-- 申请记录 -->
      <div class="tab-pane fade" id="receive">
        <div class="panel-body newrow prindBody">
          <div id="receivetoolbar" class="toolbar">
            {:build_toolbar('refresh')}
          </div>
          <table id="receivetable" class="table table-striped table-bordered table-hover" width="100%">
          </table>
        </div>
      </div>
    </div>
  </div>
</div>